import 'dart:convert';
/// id : 1006
/// type : 3
/// title : "合伙人推广"
/// coverImg : "http://jingyuan-water.oss-cn-beijing.aliyuncs.com/picture/20220418-d5fe7b94-eaf1-40ef-a5dd-7e23adf859fb.png"
/// link : null
/// startTime : null
/// endTime : null
/// status : 1
/// createTime : 1650291046000
/// createBy : null
/// updateTime : null
/// updateBy : null
/// content : "http://jingyuan-water.oss-cn-beijing.aliyuncs.com/picture/20220418-bdc4a1d3-41f3-4a24-a9f1-b92563f96b04.png"

PromotionMaterialsModel promotionMaterialsModelFromJson(String str) => PromotionMaterialsModel.fromJson(json.decode(str));
String promotionMaterialsModelToJson(PromotionMaterialsModel data) => json.encode(data.toJson());
class PromotionMaterialsModel {
  PromotionMaterialsModel({
      this.id, 
      this.type, 
      this.title, 
      this.coverImg, 
      this.link, 
      this.startTime, 
      this.endTime, 
      this.status, 
      this.createTime, 
      this.createBy, 
      this.updateTime, 
      this.updateBy, 
      this.content,});

  PromotionMaterialsModel.fromJson(dynamic json) {
    id = json['id'];
    type = json['type'];
    title = json['title'];
    coverImg = json['coverImg'];
    link = json['link'];
    startTime = json['startTime'];
    endTime = json['endTime'];
    status = json['status'];
    createTime = json['createTime'];
    createBy = json['createBy'];
    updateTime = json['updateTime'];
    updateBy = json['updateBy'];
    content = json['content'];
  }
  int? id;
  int? type;
  String? title;
  String? coverImg;
  dynamic link;
  dynamic startTime;
  dynamic endTime;
  int? status;
  int? createTime;
  dynamic createBy;
  dynamic updateTime;
  dynamic updateBy;
  String? content;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['type'] = type;
    map['title'] = title;
    map['coverImg'] = coverImg;
    map['link'] = link;
    map['startTime'] = startTime;
    map['endTime'] = endTime;
    map['status'] = status;
    map['createTime'] = createTime;
    map['createBy'] = createBy;
    map['updateTime'] = updateTime;
    map['updateBy'] = updateBy;
    map['content'] = content;
    return map;
  }

}